#!/bin/bash
export DATA_HORA=(`date +'-%d-%b-%Y%H%M%S.backup'`)
export PGUSER=postgres
export PGPASSWORD=multitone
export path_file=$1
export database_name=$2


/usr/bin/pg_dump --host localhost --port 5432 --username $PGUSER --format custom --blobs --verbose --file $path_file$DATA_HORA $database_name

